/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

/**
 *
 * @author Paulo Júnior
 */
public class MenuPrincipal implements ScreenController {
    
    Main app;
    private Nifty nifty;
    
    public MenuPrincipal(Main simpleApp, Nifty pNifty) {
        app = simpleApp;
        nifty = pNifty;
    }
    
    public void bind(Nifty pNifty, Screen screen) {
        nifty = pNifty;
    }

    public void onStartScreen() {
        
    }

    public void onEndScreen() {
        
    }
    
    public void goToPersonagemStatus()
    {
        nifty.exit();
        app.loadPersonagemStatus();
    }
    
    public void goToShop()
    {
        nifty.exit();
        app.loadShop();
    }
    
    public void sair() {
        nifty.exit();
    }
    
}
